package com.test.kupi.fw;

import com.test.kupi.page.object.PageLogin;
import com.test.kupi.user.User;

public class LoginHelper extends HelperBase{

	PageLogin page = new PageLogin(driver);
	
	public LoginHelper(ApplicationManager manager) {
		super(manager);
	}

	public LoginHelper login(User user) {
		page.clickSignButton();
		page.setLoginField(user.getLogin())
			.setPasswordField(user.getPassword());
		page.clickSubmitButton();		
		return this;
	}

}
